package com.payment.service.impl;

import com.payment.entity.Pay;
import com.payment.mapper.PayMapper;
import com.payment.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayImpl implements PayService {
    @Autowired
    private  PayMapper payMapper;

    @Override
    public List<Pay> getAll() {
        return payMapper.getAll();
    }

    @Override
    public int add(Pay entity) {
        return payMapper.add(entity);
    }

    @Override
    public int del(int id) {
        return payMapper.del(id);
    }
}
